import request from "../utils/request.js";

 
export function cartList (data) {  //购物车列表
	return request({
		url:'/api/v1/cart',
		data
	})
}
export function delcart (params) {  //移除购物车w
	return request({
		url:`/api/v1/cart/${params}`,
		method:'DELETE'
	})
}     
  export function addcart (data) {  //添加购物车
  	return request({
  		url:'/api/v1/cart',
  		data,
  		method:'POST'
  	})
  }